{% extends "IpartekBlogBundle::layout.html.twig" %}

{% block noticias -%}
    <h1>Contacto edit</h1>

    <form action="{{ path('admin_contacto_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
        <input type="hidden" name="_method" value="PUT" />
        	{# form_widget(edit_form) #}
        	
        	  {{  form_row(edit_form.nombre) }}
        	  {{  form_row(edit_form.email) }}
        	  {{  form_row(edit_form.telefono) }}        
       		  {{  form_row(edit_form.consulta) }}
        	  {{  form_row(edit_form.provincia) }}
        	  <hr>
        	  {# Resondido lo pondra automaticamente en el controlador accion:'updateAction'#}        	  
        	  {{  form_row(edit_form.anotaciones) }}
        	
        <p>
            <button type="submit">Editar</button>
        </p>
    </form>

        <ul class="record_actions">
    <li>
        <a href="{{ path('admin_contacto') }}">
            Volver al listado
        </a>
    </li>
    <li>
        <form action="{{ path('admin_contacto_delete', { 'id': entity.id }) }}" method="post">
            <input type="hidden" name="_method" value="DELETE" />
            {{ form_widget(delete_form) }}
            <button type="submit">Delete</button>
        </form>
    </li>
</ul>
{% endblock %}
